<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
// api/v1/admin/login/login

// Route::group(["prefix"=>"admin","middleware"=>"AdminApiAuth"],function (){
Route::group(["prefix"=>"admin",'namespace' => 'Admin'],function (){
    //登录
    // Route::get('/login', [LoginController::class, 'index']);
  	Route::post('login', [App\Http\Controllers\Admin\LoginController::class,'login']);
});
// 文章博客
Route::group(["prefix"=>"admin",'namespace' => 'Common'],function (){
  // Route::get('/login', [LoginController::class, 'index']);
  Route::post('login', [App\Http\Controllers\Admin\LoginController::class,'login']);
});

